//
//  RMNavigationView.m
//  TabBar
//
//  Created by 温人米 on 2019/1/10.
//  Copyright © 2019年 温人米. All rights reserved.
//

#import "RMNavigationView.h"

@interface RMNavigationView ()


@end

@implementation RMNavigationView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor greenColor];
        self.viewCenter.frame = CGRectMake(0, 20, [UIScreen mainScreen].bounds.size.width - 54, 44);
    }
    return self;
}

- (UIButton *)buttonLeft{
    if (!_buttonLeft) {
        _buttonLeft = [UIButton buttonWithType:(UIButtonTypeCustom)];
        [self addSubview:_buttonLeft];
        _buttonLeft.backgroundColor = [UIColor blackColor];
    }
    return _buttonLeft;
}

-(UIView *)viewCenter{
    if (!_viewCenter) {
        _viewCenter = [[UIView alloc] init];
        [self addSubview:_viewCenter];
        _viewCenter.backgroundColor = [UIColor whiteColor];
    }
    return _viewCenter;
}

@end
